/*    file: RtpFileWriter.h
 *    desc:
 *   
 * created: 2017-04-15
 *  author: chuanjiang.zh@qq.com
 * company: 
 */ 


#if !defined RTPFILEWRITER_H_
#define RTPFILEWRITER_H_

#include "BasicType.h"

class RtpFileWriter
{
public:
	virtual ~RtpFileWriter() {}

	virtual bool open(const char* filename) =0;
	
	virtual void close() =0;
	
	virtual bool isOpen() =0;

	virtual bool write(unsigned char* buffer, int length, uint32_t timestamp, bool marker) =0;

};


#endif //RTPFILEWRITER_H_

